/*
 *	Copyright © 2013 Changsha Shishuo Network Technology Co., Ltd. All rights reserved.
 *	长沙市师说网络科技有限公司 版权所有
 *	http://www.shishuo.com
 */

package com.hlingsoft.cms.dao;

import com.hlingsoft.cms.entity.CommentMessage;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.*;

/**
 * 达人申请
 * 
 * @author Zhangjiale
 * 
 */

@Repository
	public interface CommentMessageDao {



	/**
	 * 添加评论消息
	 * 
	 * @return Integer
	 */
	public long addCommentMessage(CommentMessage commentMessage);


	/**
	 * 获取评论我
	 * @param toId
	 * @param offset
	 * @param rows
	 * @return
	 */
    public List<CommentMessage> getCommentMessageByToId(@Param("toId") long toId,@Param("offset") int offset,@Param("rows")int rows);


	/**
	 * 获取活动评论的消息
	 * @param newsId
	 * @return
	 */
	public List<CommentMessage> getCommentMessageByNewsId(@Param("newsId") long newsId);


	/**
	 * 删除消息
	 * @param id
	 * @return
	 */
	public int updateCommentMessage(CommentMessage commentMessage);


	public List<CommentMessage> getCommentMessageByAppUserIdWithNone(@Param("appUserId") long appUserId );



}
